package com.tf.xx.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tf.xx.R;
import com.tf.xx.entity.CrmBanner;
import com.tf.xx.service.CrmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/cmsservice/bannerFront")
public class BannerFrontController {
    @Autowired
    private CrmService crmService;

    @GetMapping("getAll/")
    public R getAll() {
        List<CrmBanner> list = crmService.getAllBanner();
        return R.ok().data("list", list);

    }
}
